import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:untitled/pages/itying/SwiperOne.dart';
import 'package:untitled/pages/itying/SwiperThree.dart';
import 'package:untitled/pages/itying/SwiperTwo.dart';

class SwiperDemo extends StatefulWidget {
  const SwiperDemo({Key? key}) : super(key: key);

  @override
  State<SwiperDemo> createState() => _SwiperDemoState();
}

class _SwiperDemoState extends State<SwiperDemo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("flutter_swiper 轮播图"),
      ),
      body: Center(
        child: Column(
          children: [
            ElevatedButton(
              onPressed: (){
                Get.to(new SwiperOne());
              }, 
              child: Text("轮播图案例1")
            ),
            ElevatedButton(
              onPressed: (){
                Get.to(new SwiperTwo());
              }, 
              child: Text("轮播图案例2")
            ),
            ElevatedButton(
              onPressed: (){
                Get.to(new SwiperThree());
              }, 
              child: Text("轮播图案例3")
            ),
          ],
        ),
      ),
    );
    
  }
}